import bpy
import mathutils

import sys, os

import math

imageName = os.environ["BlenderImageTranscoder-image"]
path = os.environ["BlenderImageTranscoder-path"]

if imageName in bpy.data.images:
  image = bpy.data.images[imageName]
  image.save_render(path)
 
